<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/27 0027
  Time: 10:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html><head lang="en"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>四川化院党建学习管理系统</title>
    <link type="text/css" rel="stylesheet" href="/admin/css/style.css">
    <link type="text/css" rel="stylesheet" href="/admin/css/public.css">
    <link href="/admin/css/WdatePicker.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--头部-->
<header class="publicHeader">
    <h1>四川化院党建学习管理系统</h1>
    <div class="publicHeaderR">
        <p><span>下午好！</span><span style="color: #fff21b"> ${loginuser.name}</span> , 欢迎你！</p>
        <a href="http://127.0.0.1/sys/logout">退出</a>
    </div>
</header>
<!--时间-->
<section class="publicTime">
    <span id="time">2021年05月26日&nbsp;23:12:00&nbsp;星期三</span>
    <a href="http://127.0.0.1/login.do#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
</section>
<!--主体内容-->
<section class="publicMian ">
    <div class="left">
        <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>
        <nav>
            <ul class="list">
                <li><a href="/admin/adminuser">管理用户管理</a></li>
                <li><a href="/admin/provider">用户管理</a></li>
                <li><a href="/admin/topic">党建信息类型管理</a></li>
                <li><a href="/admin/newsmanger">党建信息管理</a></li>
                <li><a href="/admin/logout.do">退出系统</a></li>
            </ul>
        </nav>
    </div>
    <input type="hidden" id="path" name="path" value="">
    <input type="hidden" id="referer" name="referer" value="http://127.0.0.1/login.do">
    <div class="right">
        <div id="container" style="height: 100%"></div>

    </div>
</section>


<footer class="footer">
    Copyright © 2018 Markron Inc. 保留所有权利
</footer>
<script type="text/javascript" src="/admin/js/time.js"></script>
<script type="text/javascript" src="/admin/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/admin/js/common.js"></script>
<script type="text/javascript" src="/admin/js/WdatePicker.js"></script>

<script type="text/javascript" src="/admin/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
    var dom = document.getElementById("container");
    var myChart = echarts.init(dom);
    var app = {};

    var option;

    //获取数据
    $.getJSON("/admin/gettopic",function (data) {
        //解析数据
        var mycars = new Array()
        var mycarsd = new Array()
        for (var i = 0; i < data.length; i++) {
            var topic = data[i];
            mycars.push(topic.typename);
            mycarsd.push(topic.id);
        }
        option = {
            xAxis: {
                type: 'category',
                data:mycars
            },
            yAxis: {
                type: 'value'
            },
            series: [{
                data: mycarsd,
                type: 'bar'
            }]

        };


        myChart.setOption(option);
    });




</script>

</body></html>